FROM myopenjdk:8-jdk-alpine

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtim && \
    echo "Asia/Shanghai" > /etc/timezone

ADD manu-master.jar /manu-master.jar
ADD icare-output/ /icare-output/
ADD config/ /config/
RUN mkdir /icare_web_root

# ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=prod", "-jar", "/manu-master.jar"]
ENV JAVA_OPTS=""
CMD sleep ${SLEEP_SECOND} && java  ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom  -Dspring.profiles.active=prod -Djava.io.tmpdir=/icare_web_root  -jar  /manu-master.jar

